package com.keyingbo.leran.spring.framkwork.aop.aspect;

import com.keyingbo.leran.spring.framkwork.aop.intercept.DemoMethodInterceptor;
import com.keyingbo.leran.spring.framkwork.aop.intercept.DemoMethodInvocation;

import java.io.Serializable;
import java.lang.reflect.Method;

/**
 * @Auther: KEYB
 * @Date: 2019-4-18 15:35
 * @Description:
 */
public class DemoAspectJAroundAdvice extends DemoAbstractAspectAdvice implements DemoMethodInterceptor, Serializable {
    public DemoAspectJAroundAdvice(Method aspectMethod, Object aspectTarget) {
        super(aspectMethod, aspectTarget);
    }

    @Override
    public Object invoke(DemoMethodInvocation invocation) throws Throwable {
       return super.invokeAdviceMethod(invocation,invocation.getMethod(),null);
    }
}
